package com.szu.subject.ui.serviceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.szu.subject.domains.StudentClass;
import com.szu.subject.ui.mapper.StudentClassMapper;
import com.szu.subject.ui.service.StudentClassService;

@Service
public class StudentClassServiceImpl implements StudentClassService {

	@Autowired
	private StudentClassMapper studentClassMapper;
	@Override
	public List<StudentClass> batchUpdateStudentClasses(List<StudentClass> studentClass) {
		studentClassMapper.batchUpdateStudentClasses(studentClass);
		return studentClass;
	}

	@Override
	public int batchDeleteStudentClasses(List<Long> ids) {
		return studentClassMapper.batchDeleteStudentClasses(ids);
	}

	@Override
	public List<StudentClass> batchCreateStudentClasses(List<StudentClass> studentClass) {
		studentClassMapper.batchUpdateStudentClasses(studentClass);
		return studentClass;
	}

	@Override
	public StudentClass updateStudentClass(StudentClass studentClass) {
		studentClassMapper.updateStudentClass(studentClass);
		return null;
	}

	@Override
	public int deleteStudentClass(Long id) {
		studentClassMapper.deleteStudentClass(id);
		return 0;
	}

	@Override
	public StudentClass createStudentClass(StudentClass studentClass) {
		studentClassMapper.createStudentClass(studentClass);
		return studentClass;
	}

	@Override
	public List<StudentClass> getAllStudentClass() {
		return studentClassMapper.getAllStudentClasses();
	}

	@Override
	public StudentClass getStudentClassByPK(Long id) {
		return studentClassMapper.getStudentClassByPK(id);
	}

}
